//Author: Soeren Pirk
//Date  : 11.04.2013

#ifndef COMMON
#define COMMON

#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include "Vector2.h"
#include "Vector3.h"
#include "Vector4.h"
#include "Matrix4x4.h"
#include "Matrix3x3.h"

class VertexBufferObjectAttribs;

using namespace std;

struct Transform
{
	mat4 view;
	mat4 projection;
};

struct TGAFILE
{
    unsigned char imageTypeCode;
    short int imageWidth;
    short int imageHeight;
    unsigned char bitCount;
    unsigned char *imageData;
};

float frand(float low, float high);
vec3 getCamPosFromModelView(const Transform &trans);
void checkOpenGL();

#endif